<?php

use yii\db\Schema;
use yii\db\Migration;

class m160226_082841_update_condition_mobile_adspace_type_field extends Migration
{
    public function up()
    {
        $sql = <<<FINE
        alter table {{%condition_mobile_adspace_type}} modify column `adspace_type` varchar(32) NOT NULL DEFAULT '0' COMMENT '0 all, 1 mobile web, 2 android app, 3 ios app';
FINE;
        return $this->execute($sql);
    }

    public function down()
    {
        return $this->execute($sql);
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
